package com.lyn.p1;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;

@SpringBootApplication
@ComponentScan(basePackages="com.lyn.p1")
//使用指定的配置文件时，需删除application.properties
@PropertySource(value="classpath:my.properties",encoding="utf-8") //加载指定的配置文件
public class Application2 {

	public static void main(String[] args) {
		SpringApplication.run(Application2.class, args);
	}
}
